package com.xuchaotong.extendsdemo;

public class Teacher extends Person{
    private String name = "teacher";

    public Teacher() {
//        super();
        System.out.println("this is teacher constructor...");
    }


    public void printName(){
        System.out.println("teacher name : " + name);
    }

    public static void main(String[] args) {
        Person person = new Teacher();
        person.printName();
    }
}
